package com.ap.core.validation.message.rules;

import com.ap.core.message.managepayment.info.RetrieveRTPMessageInfo;
import com.ap.core.validation.message.info.MessageValidationInfo;
import com.ap.core.validation.message.info.RTPOriginalInfo;

/**
 * User: Ranjit.Singh
 * Check if provided FI ID is in active status.
 */
public class RV0006Rule  extends AbstractFICheckRule<RetrieveRTPMessageInfo, RTPOriginalInfo>  {
    
    @Override
    public boolean validate(MessageValidationInfo<RetrieveRTPMessageInfo, RTPOriginalInfo> infoObject) {
    	return isFinancialInstitutionActive(infoObject.getBoundObject().getRequestInfo().getFIId());    	
    }
   
}
